<?php
namespace App\Models;
use App\Models\Eticket\Activity;
use App\Models\Eticket\Ticket;
use Illuminate\Database\Eloquent\Model;
class Student extends Model
{
    public function activities()
    {
        return $this->hasMany(Activity::class,'school','school');
    }

    public function tickets()
    {
        return $this->hasMany(Ticket::class,'openid','openid');
    }
}
